// generat0r
// var fetch = require('node-fetch')

// function* gen() {
//     let r1 = yield fetch('https://api.github.com/users/github')
//     let r2 = yield fetch('https://api.github.com/users/github/followers')
//     console.log(r1.bio, r2[0].login);
//   }
//   let g = gen() // {}
//   console.log(g.next());


  // async-await
  var fetch = require('node-fetch')
  var fetchData = async function() {
      var r1 = await fetch('https://api.github.com/users/github')
      var json1 = await r1.json()
      console.log(json1.bio);
  }
  fetchData()